package com.miyu.system.pojo.system;

import com.miyu.system.utils.jpacomment.annotation.ColumnComment;
import com.miyu.system.utils.jpacomment.annotation.TableComment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.persistence.*;
import lombok.Data;

import java.io.Serializable;



/**
 * 字典通用类(静态数据);
 * @author : miyu
 * @date : 2025-3-23
 */
@ApiModel(value = "字典通用类(静态数据)",description = "")
@Data
@Entity
@Table(name="sys_dict_item")
@TableComment("字典通用类(静态数据)")
public class SysDictItem implements Serializable,Cloneable{
    /** 主键;主键 */
    @Id
    @TableGenerator(name="id_gen",  table="sys_id_generator", pkColumnName="table_name", pkColumnValue="sys_dict_item", valueColumnName="id_value", initialValue=1, allocationSize=1)
    @GeneratedValue(strategy=GenerationType.TABLE, generator="id_gen")

    @ApiModelProperty(value="主键",notes = "主键")
    @Column(name = "item_id", nullable = false,length=11 )
    @ColumnComment("主键")
    private Integer itemId ;
    /** 主表ID;主表ID */
    @ApiModelProperty(value="主表ID",notes = "主表ID")
    @Column(name = "dict_id", nullable = true,length=11 )
    @ColumnComment("主表ID")
    private Integer dictId ;
    /** 字典类编码;字典类编码 */
    @ApiModelProperty(value="字典类编码",notes = "字典类编码")
    @Column(name = "item_code", nullable = true,length=50 )
    @ColumnComment("字典类编码")
    private String itemCode ;
    /** 字典类名称;字典类名称 */
    @ApiModelProperty(value="字典类名称",notes = "字典类名称")
    @Column(name = "item_name", nullable = true,length=50 )
    @ColumnComment("字典类名称")
    private String itemName ;
    /** 是否停用;是否停用 */
    @ApiModelProperty(value="是否停用",notes = "是否停用")
    @Column(name = "is_stop", nullable = true,length=1 )
    @ColumnComment("是否停用")
    private String isStop = "0" ;
    /** 是否禁用;是否禁用 */
    @ApiModelProperty(value="是否禁用",notes = "是否禁用")
    @Column(name = "is_disabled", nullable = true,length=1 )
    @ColumnComment("是否禁用")
    private String isDisabled = "0" ;
    /** 父级编码;父级编码 */
    @ApiModelProperty(value="父级编码",notes = "父级编码")
    @Column(name = "parent_code", nullable = true,length=20 )
    @ColumnComment("父级编码")
    private String parentCode ;
    /** 排序;排序 */
    @ApiModelProperty(value="排序",notes = "排序")
    @Column(name = "sort_no", nullable = true,length=10 )
    @ColumnComment("排序")
    private Integer sortNo ;
}